
<?php $this->layout= 'userDefault'; ?>

<div class="row-fluid show-grid" >

	<div id="myCarousel" class="carousel slide">
		<!-- Carousel items -->
		<div class="carousel-inner">
			
			<?php 
			foreach ($destacados as $i => $producto) {
				
				if ($i == 0) {
					echo '<div class="active item">';
				}
				else {
					echo '<div class="item">';
				}
					//echo '<a href="/cakephp/viewMovies/view/' . $movie['Movie']['titulo'] . '/' . $movie['Movie']['id'] . '">';
						echo '<img src="./img/' . $producto['Producto']['imagendestacada'] . '" alt="'.$producto['Producto']['nombre'].'"/></a>';
						echo '<div class="carousel-caption">';
							//echo '<h4 class="pcar"><a href="/cakephp/viewMovies/view/' . $movie['Movie']['titulo'] . '/' . $movie['Movie']['id'] . '">' . $movie['Movie']['titulo'] . '</a></h4>';
							//echo '<p class="pcar"><a href="/cakephp/viewMovies/view/' . $movie['Movie']['titulo'] . '/' . $movie['Movie']['id'] . '">' . $movie['Movie']['sinopsis_destacado'] . '</a></p>';
						echo '</div>';
				echo '</div>';
				
			} 
			?>
			
		</div>
		<!-- Carousel nav -->
		<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
		<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
	</div>
	<script type="text/javascript"> $('.carousel').carousel(); </script>
	
</div>




<div class="contenedorslide">
	
	

	<div class="row-fluid">
		<div id="peliculas" class="contenidonube" >
			<div id="tags">
				<?php
                                foreach ($marcas as $i => $marca)
				{			
                                       $direccionImagen = './img/logos/'.$marca['Marca']['logo'];
                                        echo("<span>");
                                        echo '<a href="'.$marca['Marca']['url'].'" target="_blank">';
					echo '<img src="'. $direccionImagen.'" alt="'.$marca['Marca']['nombre'].'" style="border:#fff 5px solid"/>';
                                        echo('</a>        
                                            ');
					echo("</span>");
                                        
                                       
				}
				
				?>
			</div>
		</div>
	</div>
</div>